<form id="pagerForm" method="post" action="">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="g" value="{$group_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<div class="searchContent">
					<ul class="searchContent">
					<li style="width:220px;">关键字：<input type="text" name="keywords"  class="input-text" value="{$keywords}" class="textInput"/></li>
					<li style="width:80px;">
						<select name="sfield" class="combox">
					 <option value="all" {if $sfied=='all'}selected="selected"{/if}>全部</option>
						<option value="id" {if $wherefields == 'id'}selected="selected"{/if}>编号</option>
						<option value="userid" {if $wherefields == 'userid'}selected {/if}>用户ID</option>
						</select>
						<input type="hidden" name="sfield_name" value="id,userid" />
					</li>
					<li style="width:80px;">
						<select name="retcode" class="combox">
						<option value="">充值状态</option>
						<option value="1" {if $condition['retcode'] == '1'} selected='selected' {/if} >成功</option>
						<option value="2" {if $condition['retcode'] == '2'} selected='selected' {/if} >不成功</option>
						</select>
					</li>
					<li style="width:80px;">
						<select name="platform" class="combox">
						<option value="">平台</option>
						<option value="SMW01" {if $condition['platform'] == 'SMW01'} selected='selected' {/if} >云采购</option>
						<option value="91YUNGOU" {if $condition['platform'] == '91YUNGOU'} selected='selected' {/if} >云购</option>
						</select>
					</li>
					<li style="width:160px;">
						<input name="starttime" class="date" type="text" value="{$condition['starttime']}"/><a class="inputDateButton" href="javascript:;">选择</a>
					  </li>
					<li style="width:160px;">
						<input name="endtime" class="date" type="text" value="{$condition['endtime']}"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					<div class="buttonActive"><div class="buttonContent"><button type="reset">清空</button></div></div>
					</ul>
					</div>
	</div>
	</form>
    </form>
    

</div>

<div class="pageContent">
    <div id="w_list_print">
        <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="63">
             <thead>
      		<tr>
				<th width="5%" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="5%" orderField="userid" {if $orderField=='userid'}class="{$orderDirection}"{/if}>用户</th>
				<th width="10%" orderField="out_trade_no" {if $orderField=='out_trade_no'}class="{$orderDirection}"{/if}>商户订单号</th>			
				<th width="15%" orderField="transaction_id" {if $orderField=='transaction_id'}class="{$orderDirection}"{/if}>财付通订单号</th>
				<th width="5%" orderField="total_fee" {if $orderField=='total_fee'}class="{$orderDirection}"{/if}>金额</th>
				<th width="10%" orderField="ctime" {if $orderField=='ctime'}class="{$orderDirection}"{/if}>录入时间</th>
				<th width="10%" orderField="notify_time" {if $orderField=='notify_time'}class="{$orderDirection}"{/if}>订单返回时间</th>
				<th width="5%" orderField="platform" {if $orderField=='platform'}class="{$orderDirection}"{/if}>平台</th>
				<th width="4%" align="center" orderField="retcode" {if $orderField=='retcode'}class="{$orderDirection}"{/if}>充值状态</th>
				<th width="10%" align="center">备注</th>
				<th width="10%" align="center">参数信息</th>

			</tr>
      	</thead>
            	<tbody>
<volist name="list" id="vo">
      	<tr target="sid_user">
			<td height="50">{$vo['id']}</td>
            <td><a title="查看" target="dialog" width="580" height="500" rel="User_detail_{$vo['id']}" href="{:U('User/detail',array('id'=>$vo['userid']))}">{$vo['userid']}</a></td>
      		<td height="50">{$vo['out_trade_no']}</td>
			<td>{$vo['transaction_id']}</td>    	
			<td><font color="red">{$vo['total_fee']/100}</font></td>
			<td>{if $vo['ctime']}{$vo['ctime']|date='Y-m-d H:i:s',###}{/if}</td>		
			<td>{if $vo['notify_time']}{$vo['notify_time']|date='Y-m-d H:i:s',###}{/if}</td>
			<td>{if $vo['platform'] == 'SMW01'}云采购{elseif $vo['platform'] == '91YUNGOU'}云购{/if}</td>
			<td>{if $vo['retcode'] == 0}<font color='green'>成功</font>{else}不成功{/if}</td>
			<td>{$vo['other']}</td>
			<td>
			   <php>$t_arr=unserialize($vo['t_arr']);</php>
				{if $t_arr['order_sn']} 
				 订单号：  {$t_arr['order_sn']}
              	{/if}		
			</td>
           
      	</tr>
		</volist>
      	</tbody>
        </table>
    </div>

    <div class="panelBar" >
        <div class="pages">
            <span>显示 </span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
                <option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
                <option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
                <option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
            </select>
            <span> 条，共 {$totalCount} 条</span>
        </div>
        
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
    </div>
</div>

